//
//  ZHCustomButton.m
//  XMLYFM
//
//  Created by dllo on 15/12/22.
//  Copyright © 2015年 zzl. All rights reserved.
//

#import "ZHCustomButton.h"

@implementation ZHCustomButton

// 重写系统方法设置image在button上的位置
- (CGRect)imageRectForContentRect:(CGRect)contentRect{
    
    CGFloat imageW = contentRect.size.width;
    CGFloat imageH = contentRect.size.height*0.9;
    return CGRectMake(0, 0, imageW, imageH);
}

/**
 *  重写系统方法设置title在button上的位置
 */
- (CGRect)titleRectForContentRect:(CGRect)contentRect{
    return CGRectMake(0, 0, 0, 0);
}





/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
